{extend name="Public:base" /}
      {block name="seo"}
              <title>{$groupinfo['name']}|话题详情页|{$Think.CONFIG.WEB_SITE_TITLE} - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="{$Think.CONFIG.WEB_SITE_KEYWORD}">
  <meta name="description" content="{$Think.CONFIG.WEB_SITE_DESCRIPTION}">
      {/block}
{block name="body"}
<div class="aw-container-wrap">


	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<div class="aw-mod aw-topic-detail-title">
						<div class="mod-body">
						
							<img src="{$groupinfo['cover_id']|get_groupavatar}" alt="{$groupinfo['name']}" style="width:50px;height:50px;">
						
		
							<div class="pull-left ">
							<h2>{$groupinfo['name']}   	<div class="pull-right es-margin-l-10">{if condition="$groupinfo['hassc'] eq 1"}
								<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', {$groupinfo['id']});" class="follow btn btn-sm btn-success pull-left active"><span>取消关注</span> <em>|</em> <b>{$groupinfo['focuscount']}</b></a>
		{else/}
									<a href="javascript:;" onclick="AWS.User.follow($(this), 'huati', {$groupinfo['id']});" class="follow btn btn-sm btn-success pull-left "><span>关注</span> <em>|</em> <b>{$groupinfo['focuscount']}</b></a>
	
		{/if}</div></h2>
							
												<div class="media-metas clearfix ">

      
        <span class="">{$groupinfo['topiccount']}个帖子</span>
        <span class="fsn es-margin-l-10">创建时间：{$groupinfo['create_time']|friendlyDate}</span>

      </div>
							</div>
							
						{if condition="session('member_info')"}	
							<div class="aw-topic-operate text-color-999">
							
									<a class="btn btn-normal btn-success" href="{:es_url('Topic/topicadd',array('name'=>$groupinfo['name']))}"><i class="iconfont icon-fabu2"></i> 发帖</a>
															                          
							</div>
														
	{/if}
						</div>
																				      
					</div>

					<div class="aw-mod aw-topic-list-mod">
						<div class="mod-head">
							<div class="tabbable">
								<!-- tab 切换 -->
								<ul class="nav nav-tabs aw-nav-tabs hidden-xs">
									
									<li {if condition="$order eq 1"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>1,'paixu'=>$paixu,'name'=>$groupinfo['name']))}" >全部内容</a></li>
							
																		<li {if condition="$order eq 2"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>2,'paixu'=>$paixu,'name'=>$groupinfo['name']))}" >推荐</a></li>
																		{if condition="session('member_info')"}	
																		<li {if condition="$order eq 3"}class="active"{/if}><a href="{:es_url('Topic/index',array('order'=>3,'paixu'=>$paixu,'name'=>$groupinfo['name']))}" id="i_favorite"  >我的收藏</a></li>
									                                    {/if}
								
								<div class="paixu pull-right">
								<span><a href="{:es_url('Topic/index',array('order'=>$order,'paixu'=>1,'name'=>$groupinfo['name']))}" {if condition="$paixu eq 1"}class="active"{/if}>按回帖时间</a></span>
								<span class="fly-mid">|</span>
								<span><a href="{:es_url('Topic/index',array('order'=>$order,'paixu'=>2,'name'=>$groupinfo['name']))}" {if condition="$paixu eq 2"}class="active"{/if}>按发表时间</a></span>
								</div>
								</ul>
								
								
								<!-- end tab 切换 -->
							</div>
						</div>

						<div class="mod-body">
							<!-- tab 切换内容 -->
							<div class="tab-content">
								<div class="tab-pane active" id="all">
									<!-- 推荐问题 -->
									<!-- end 推荐问题 -->
									<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_all_list">
													<ul class="fly-list">          
        {volist name="topiclist" id="vo"}

   <li>
   <a class="fly-avatar " data-id="{$vo['uid']}"  href="{:es_url('user/home',array('id'=>$vo['uid']))}" rel="nofollow">
	<img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}">
	
        {if condition="$vo['rzstatus']"}
	<i class="iconfont {$vo['rzicon']}"></i>
	{/if}
            </a>
            
          
            <h2>
             
              <a class="listlink" href="{:es_url('Topic/gview',array('id'=>$vo['id']))}">{$vo.title}</a>
            </h2>

            <div class="fly-list-info">
          
              
              
             <span class="text-color-999">{if condition="$vo['tid'] gt 0"}<a class="aw-question-tags" href="{:es_url('topic/cindex',array('id'=>$vo['tid']))}">{$vo.tid|get_topiccatename}</a>  • {/if}<a href="{:es_url('user/home',array('id'=>$vo['replyuid']))}" class="aw-user-name" data-id="{$vo.replyuid}">{$vo.replyuser}</a> {$vo.actionname}  • {$vo.focuscount} 人关注  • {$vo.reply} 个回复 • {$vo.view} 次浏览 • 	{$vo.praise}次点赞	  			</span>
 
          
              <span class="fly-list-nums es-font12 hidden-xs"> 
           
               {$vo.replytime}
              </span>
            </div>
            <div class="fly-list-badge">
   {if condition="$vo.settop eq 1"}<span class="layui-badge layui-bg-red ">置顶</span>{/if}
		{if condition="$vo.choice eq 1"}<span class="layui-badge layui-bg-green">推荐</span>{/if}		
            </div>
          </li>


{/volist}
       
         
        </ul>


											</div>
										</div>
										<div class="mod-footer">
												<div class="page-control">
							{$page}
							</div>
										</div>
									</div>
								</div>

					
						
							</div>
							<!-- end tab 切换内容 -->
						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 话题描述 -->
					<div class="aw-mod aw-text-align-justify">

						<div class="mod-head">
							<h3>话题描述</h3>
						</div>
						<div class="mod-body">
														<p>{$groupinfo['describe']|html_entity_decode}</p>
													</div>
					</div>
					<!-- end 话题描述 -->

					<div class="aw-mod topic-about">
	<div class="mod-head">
		<h3>相关话题</h3>
	</div>
	<div class="mod-body" data-type="topic">
		<div class="aw-topic-bar" data-type="topic" data-id="79">
			<div class="tag-bar clearfix">
			{volist name="grouplist" id="vo"}		
					<span class="topic-tag" >
						<a class="text" href="{:es_url('Topic/index',array('name'=>$vo['name']))}">{$vo['name']}</a>
					</span>	
				{/volist}	
					
					
																</div>
		</div>
	</div>
</div>
					
					

					<!-- xx人关注该话题 -->
					<div class="aw-mod topic-status">
						<div class="mod-head">
							<h3>{$focuscount} 人关注该话题</h3>
						</div>
						<div class="mod-body">
							<div id="focus_users" class="aw-border-radius-5">
							{volist name="memberlist" id="vo"}		
	                             <a href="{:es_url('user/home',array('id'=>$vo['id']))}"><img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}"></a>
							{/volist}
							
					 </div>
						</div>
					</div>
					<!-- end xx人关注该话题 -->

					<!-- 话题修改记录 -->
										<!-- end 话题修改记录 -->

									</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">

	var CONTENTS_TOPIC_ID ="{$groupinfo['id']}";

	var CONTENTS_TOPIC_TITLE = "{$groupinfo['name']}";
</script>

{/block}